<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>测试静态文件</title>
</head>
<body>

<img src="http://127.0.0.1:8000/static/images/django2.jpeg" width="300px" height="200px">
<img src="/static/images/django2.jpeg" width="300px" height="200px">

{% load static %}
<img src="{% static 'images/django2.jpeg' %}" width="200" height="200">

</body>
</html>